package com.yvon.maple.service.system.mapper;

import com.yvon.boot.mybatis.BaseMapper;
import com.yvon.maple.service.system.dto.UserDeptDTO;
import com.yvon.maple.service.system.entity.UserDept;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UserDeptMapper extends BaseMapper<UserDept> {
    /**
     * 部门用户id
     *
     * @param userId 用户id
     * @return {@code List<UserDeptDTO> }
     */
    List<UserDeptDTO> getDeptByUserId(@Param("userId") Long userId);
}
